ひとりNavigation API Advent Calendar 22日目
https://gyazo.com/cfb1666419f7fe0c4313c54a95a43acc
これはひとりNavigation API Advent Calendarの22日目です。
Interop 2025対象となってからのNavigation APIのWPT(Web Platform Tests)の様子を見ていきます
対象
Navigation API
開発版ブラウザ
yamanoku.icon WPTの読み方があまり詳しくわかってないです
リポジトリに置いてるテストケースを見て通過してるかの結果を見ている?
wpt/navigation-api at 8ccef0c765a54aea5e2a1cde0d169a85d7e282c5 · web-platform-tests/wpt · GitHub
https://wpt.live/navigation-api/ はブラウザから直接テストを実行できる公開環境
https://wpt.fyi/results/ は各ブラウザのテスト結果を定期的に収集したアーカイブ
こちらを見てみる
日付ベースでの進捗確認
2025-02-14時点(Interop 2025スタート)
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-02-14T00%3A00%3A00.000Z
https://gyazo.com/d6921c42cba95404102abb66efc1351b
2025-03-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-03-01T00%3A00%3A00.000Z
https://gyazo.com/9941f3428998af048787cd02eb60d72f
1個だけテスト対象が増えてる
Chromium系、微妙にテストケースPASSしているのが増えてる
Firefox、Safariは共に動きなし
2025-04-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-04-01T00%3A00%3A00.000Z
https://gyazo.com/0b0bd49fd75a63fcb3fec72735b73d60
テスト対象が減ってる
commit-behavior、pre-entry-eventsが削除
precommit-handlerが追加
Firefox、Safariは共に動きなし
2025-05-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-05-01T00%3A00%3A00.000Z
https://gyazo.com/e7233a188b14fddb45901e1070f63b07
テストケースが微増。Chromium系はわずかに進捗
Firefox、Safariは共に動きなし
2025-06-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-06-01T00%3A00%3A00.000Z
https://gyazo.com/815067a07379c8f0bb9bd68a2da46548
Edgeのみわずかに進捗・テストケースも増えている
Firefox、Safariは共に動きなし
2025-07-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-07-01T00%3A00%3A00.000Z
https://gyazo.com/cfe366ce72c91fec70b56d2de572decb
Chromium系はわずか減退?
Chromeはテストケースが増えている
Firefox、Safariは共に動きなし
テストケースは増えている
2025-08-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-08-01T00%3A00%3A00.000Z
https://gyazo.com/ac58ad3af1bf14ae209b50f5c44a9cfd
Chromeは1件現象・Edgeはわずかに進捗・テストケースが微増
Firefox、Safariは共に動きなし・テストケースが微増
2025-08-21時点でSafariが圧倒的進捗を出している
https://gyazo.com/633d612fa75630c7fcde59d45eaa7913
https://wpt.fyi/results/?run_id=5112502997483520
WebKit周辺のコミットを探るがそれっぽいものがあまりわからず…
WPT側のテストが失敗してたせい?
2025-09-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-09-01T00%3A00%3A00.000Z
https://gyazo.com/66bab0eaa6778a560a645656a3d26913
2025-10-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-10-01T00%3A00%3A00.000Z
https://gyazo.com/97214bb2e0d8e434bbc0efe2471fc6a4
2025-11-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-11-01T00%3A00%3A00.000Z
https://gyazo.com/9877f9b91d2dc1c1ff02cc97f89557e4
2025-11-03時点でFirefoxが圧倒的進捗を出している
https://gyazo.com/ff6e236224dc4b8857812bab62495973
https://wpt.fyi/results/?run_id=5128280211718144
これも何故急に数値が伸びたかが不明
2025-12-01時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-12-01T00%3A00%3A00.000Z
https://gyazo.com/0a921ecfc6e1f7ab9495d9af16a41cac
2025-12-21時点
https://wpt.fyi/results/navigation-api?label=master&label=experimental&to=2025-12-21T00%3A00%3A00.000Z
https://gyazo.com/f48531c238da92130d71258d50c113b5
Interop 2025でのWPT進捗(2025-12-22時点)
https://wpt.fyi/results/navigation-api?label=master&label=experimental&aligned&view=interop&q=label%3Ainterop-2025-navigation
https://gyazo.com/08adf3371e00c02e8e7059314b7d222b
https://wpt.fyi/results/navigation-api?label=master&label=stable&aligned&view=interop&q=label%3Ainterop-2025-navigation
https://gyazo.com/f1b64c39f1f556de949c7908ad2f0d55
ちなみに
Webkit側でNavigation APIのスタブ(IDL・クラス定義)が入ったのは2023-10-25らしい
https://github.com/WebKit/WebKit/commit/37b116f08e59b3eb3c75e46d368814178d02f4f8
FirefoxはApp History API時代でテストケースを追加してる。これは2021-07-18の話
https://github.com/mozilla-firefox/firefox/commit/0e6cba8e49fa02c3b77218eab478a86a2a6561b8